
// const { Sequelize, DataTypes } = require("sequelize");
const { STRING, INTEGER, DATE } = require('../types')

module.exports = (sequelize) => {
  const price = sequelize.define(
    'price',
    {// 在这里定义模型属性
      id: {
        type: INTEGER,
        primaryKey:true,
        autoIncrement:true,
        allowNull:false
      },
      aPrice: {
        type: INTEGER,
      },
      bPrice: {
        type: INTEGER,
      },
      abPrice: {
        type: INTEGER,
      },
      oPrice: {
        type: INTEGER,
      },
      checkPrice: {
        type: INTEGER,
      },
      notice: { // 公告管理
        type: STRING,
      }
    },
    {
    tableName: "price",//直接提供表名
    timestamps: false
   }
  );
  return price
}
